package cn.yuanqiao.web.controller.archive.report;/**
 * @author 赵常飞
 * @date 2023/8/9 14:52
 */

import cn.yuanqiao.archive.liyong.domain.ListQuery;
import cn.yuanqiao.archive.report.service.reportService;
import cn.yuanqiao.common.web.controller.BaseController;
import cn.yuanqiao.common.core.domain.AjaxResult;
import cn.yuanqiao.common.web.page.TableDataInfo;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

/**
 *
 *@AUTHOR:赵常飞
 *@date 2023/8/9 14:52
 */
@RestController
@RequestMapping("/archive/report")
public class reportController extends BaseController {
    @Autowired
    private reportService reportService;

    @PostMapping("/geturl")
    public AjaxResult geturl(@RequestBody JSONObject jsonObject) {
        Map map = reportService.geturl(jsonObject);
        return success(map);
    }
    @GetMapping("/getreportindex")
    public AjaxResult getreportindex() throws UnsupportedEncodingException {
        String url = reportService.getreportindex();
        return success(url);
    }

}
